package pojo;

import java.util.Date;

/**
 * Exchangehistory entity. @author MyEclipse Persistence Tools
 */

public class Exchangehistory implements java.io.Serializable {

	// Fields

	private Integer exchangeId;
	private User user;
	private Item item;
	private Date exchangeDate;
	private Integer exchangeAmount;

	// Constructors

	/** default constructor */
	public Exchangehistory() {
	}

	/** full constructor */
	public Exchangehistory(Integer exchangeId, User user, Item item,
			Date exchangeDate, Integer exchangeAmount) {
		this.exchangeId = exchangeId;
		this.user = user;
		this.item = item;
		this.exchangeDate = exchangeDate;
		this.exchangeAmount = exchangeAmount;
	}

	// Property accessors

	public Integer getExchangeId() {
		return this.exchangeId;
	}

	public void setExchangeId(Integer exchangeId) {
		this.exchangeId = exchangeId;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Item getItem() {
		return this.item;
	}

	public void setItem(Item item) {
		this.item = item;
	}

	public Date getExchangeDate() {
		return this.exchangeDate;
	}

	public void setExchangeDate(Date exchangeDate) {
		this.exchangeDate = exchangeDate;
	}

	public Integer getExchangeAmount() {
		return this.exchangeAmount;
	}

	public void setExchangeAmount(Integer exchangeAmount) {
		this.exchangeAmount = exchangeAmount;
	}

}